package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 迁移记录表
 *
 * @author code-generate
 * @date 2022-02-27
 */
@Data
@DbTable(tableName = "t_gre_tree_move_log")
public class GreTreeMoveLog extends BaseEntity {
        /**
     * 树木编号
     */
    @DbTableField(columnName = "c_code", dbType = DbTypeEnum.VARCHAR)
    public String code ;

    /**
     * 树木ID
     */
    @DbTableField(columnName = "c_tree_id", dbType = DbTypeEnum.INTEGER)
    public Integer treeId ;

    /**
     * 原先位置经度、坐标X
     */
    @DbTableField(columnName = "c_old_lng", dbType = DbTypeEnum.DOUBLE)
    public Double oldLng ;

    /**
     * 原先位置纬度、坐标Y
     */
    @DbTableField(columnName = "c_old_lat", dbType = DbTypeEnum.DOUBLE)
    public Double oldLat ;

    /**
     * 新的位置经度、坐标X
     */
    @DbTableField(columnName = "c_new_lng", dbType = DbTypeEnum.DOUBLE)
    public Double newLng ;

    /**
     * 新的位置纬度、坐标Y
     */
    @DbTableField(columnName = "c_new_lat", dbType = DbTypeEnum.DOUBLE)
    public Double newLat ;

    /**
     * 挖出时间
     */
    @DbTableField(columnName = "c_dig_time", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime digTime ;

    /**
     * 栽种时间
     */
    @DbTableField(columnName = "c_plant_time", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime plantTime ;

    /**
     * 原养护单位ID
     */
    @DbTableField(columnName = "c_old_curing_dept_id", dbType = DbTypeEnum.VARCHAR)
    public String oldCuringDeptId ;

    /**
     * 原养护单位名称
     */
    @DbTableField(columnName = "c_old_curing_dept_name", dbType = DbTypeEnum.VARCHAR)
    public String oldCuringDeptName ;

    /**
     * 新养护单位ID
     */
    @DbTableField(columnName = "c_new_curing_dept_id", dbType = DbTypeEnum.VARCHAR)
    public String newCuringDeptId ;

    /**
     * 新养护单位名称
     */
    @DbTableField(columnName = "c_new_curing_dept_name", dbType = DbTypeEnum.VARCHAR)
    public String newCuringDeptName ;

    /**
     * 原管理单位ID
     */
    @DbTableField(columnName = "c_old_manage_dept_id", dbType = DbTypeEnum.VARCHAR)
    public String oldManageDeptId ;

    /**
     * 原管理单位名称
     */
    @DbTableField(columnName = "c_old_manage_dept_name", dbType = DbTypeEnum.VARCHAR)
    public String oldManageDeptName ;

    /**
     * 新管理单位ID
     */
    @DbTableField(columnName = "c_new_manage_dept_id", dbType = DbTypeEnum.VARCHAR)
    public String newManageDeptId ;

    /**
     * 新管理单位名称
     */
    @DbTableField(columnName = "c_new_manage_dept_name", dbType = DbTypeEnum.VARCHAR)
    public String newManageDeptName ;

    /**
     * 原经办人ID
     */
    @DbTableField(columnName = "c_old_handle_user_id", dbType = DbTypeEnum.VARCHAR)
    public String oldHandleUserId ;

    /**
     * 原经办人名称
     */
    @DbTableField(columnName = "c_old_handle_user_name", dbType = DbTypeEnum.VARCHAR)
    public String oldHandleUserName ;

    /**
     * 新经办人ID
     */
    @DbTableField(columnName = "c_new_handle_user_id", dbType = DbTypeEnum.VARCHAR)
    public String newHandleUserId ;

    /**
     * 新经办人名称
     */
    @DbTableField(columnName = "c_new_handle_user_name", dbType = DbTypeEnum.VARCHAR)
    public String newHandleUserName ;

    /**
     * 迁移费用
     */
    @DbTableField(columnName = "c_move_cost", dbType = DbTypeEnum.DOUBLE)
    public Double moveCost ;

    /**
     * 备注
     */
    @DbTableField(columnName = "c_remark", dbType = DbTypeEnum.VARCHAR)
    public String remark ;


}
